package com.sigmatrix.h5.mapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sigmatrix.h5.entity.v2.DisRebateAudit;
import com.sigmatrix.h5.entity.v2.DisRebateDetail;
import com.sigmatrix.h5.web.mode.AccumulatedRebate;

public interface DisRebateDetailMapper extends XBaseMapper<DisRebateDetail> {

	BigDecimal findTotalAmountByDealerIdAndType(@Param("tablePrefix") String tablePrefix,
			@Param("dealerId") Integer dealerId, @Param("dealerType") Integer dealerType);
	
	
	List<DisRebateAudit> findRebatedByIdAndType(@Param("tablePrefix") String tablePrefix,
			@Param("dealerId") Integer dealerId, @Param("dealerType") Integer dealerType);
	
	AccumulatedRebate statistic(@Param("tablePrefix") String tablePrefix,
			@Param("dealerId") Integer dealerId, @Param("dealerType") Integer dealerType);

}
